<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="s" uri="/struts-tags"%>

<table class="table" id="processDressmakerList">
    <caption><fmt:message key="processDressmakerList.heading"/></caption>
    <thead>
        <tr>
            <th><fmt:message key="processDressmaker.initDate"/></th>
            <th><fmt:message key="processDressmaker.totalAmount"/></th>
            <th><fmt:message key="processDressmaker.totalAmountFail"/></th>
            <th><fmt:message key="processDressmaker.totalCurrentAmount"/></th>
            <th><fmt:message key="processDressmaker.endDate"/></th>
        </tr>
    </thead>
    <tbody>
        <s:if test="processDressmakers.size > 0">
            <s:iterator value="processDressmakers" status="status">
                <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
                    <td><s:property value="initDate" /></td>
                    <td><s:property value="totalAmount" /></td>
                    <td><s:property value="totalAmountFail" /></td>
                    <td><s:property value="totalCurrentAmount" /></td>
                    <td><s:property value="endDate" /></td>
                </tr>
            </s:iterator>
        </s:if>
        <s:else>
            <tr class="empty"><td colspan="5">Nothing found to display.</td></tr>
        </s:else>
    </tbody>
</table>